import request from '@/utils/request'

// 查询博卡申请改单记录列表
export function listBokaChangeOrder(query) {
  return request({
    url: '/business/bokaChangeOrder/list',
    method: 'get',
    params: query
  })
}

// 查询博卡申请改单记录详细
export function getBokaChangeOrder(id) {
  return request({
    url: '/business/bokaChangeOrder/' + id,
    method: 'get'
  })
}
// 新增博卡申请改单记录
export function addBokaChangeOrder(data) {
  return request({
    url: '/business/bokaChangeOrder',
    method: 'post',
    data: data
  })
}

// 修改博卡申请改单记录
export function updateBokaChangeOrder(data) {
  return request({
    url: '/business/bokaChangeOrder',
    method: 'put',
    data: data
  })
}

// 删除博卡申请改单记录
export function delBokaChangeOrder(id) {
  return request({
    url: '/business/bokaChangeOrder/' + id,
    method: 'delete'
  })
}

// 阅读状态修改
export function changeUserStatus(id, readStatus) {
  const data = {
    id,
    readStatus
  }
  return request({
    url: '/business/bokaChangeOrder/changeStatus',
    method: 'put',
    data: data
  })
}
// 查询博卡申请改单记录详细
export function getGoodNameApi(id) {
  return request({
    url: '/business/bokaChangeOrder/getGoodName',
    method: 'get'
  })
}
